package com.example.sevendemo;

import java.sql.*;

public class DBTest {
    public static void main(String[] args) {

        String url="jdbc:mysql://localhost:3306/library_management?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC";
        String user="root";
        String password="dwj061219!";
        try{
            Class.forName("com.mysql.cj.jdbc.Driver");
            Connection con =DriverManager.getConnection(url,user,password);
            System.out.println(con);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }
    }
}